﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="mgrTypes.aspx.cs" Inherits="WebUI.Pages.mgrTypes" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphTop" runat="server">
    <asp:Label ID="lblMsg" runat="server" Text=""></asp:Label>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphContent" runat="server">
    <div id="content">
    <div id="new">
        <table id="frm">
            <tr>
                <td><h2>Novo tipo de Solicitação</h2></td>
                <td></td>
                <td></td>
            </tr>

            <tr>
                <td>&nbsp;</td>
                <td style="margin-left: 80px">
                    &nbsp;</td>
                <td></td>
            </tr>

            <tr>
                <td>Nome:</td>
                <td style="margin-left: 80px">
                    <asp:TextBox ID="txtNome" runat="server" Width="199px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>

            <tr>
                <td>&nbsp;</td>
                <td style="margin-left: 80px">
                    <asp:Button ID="cmdInsere" runat="server" Text="Salvar" 
                        onclick="cmdInsere_Click" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    </div>
    <div id="search">
        <asp:Repeater ID="rpTypes" runat="server" onitemcommand="rpTypes_onItemCommand">  
            <HeaderTemplate>
                <table id="tablegrid" width="400px">
                    <thead>
                        <th scope="col">idTipoSolicitacao</th>
                        <th scope="col">Descrição</th>
                        <th scope="col"></th>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td> <%# Eval("idTipoSolicitacao")%> </td>
                    <td> <%# Eval("DescTipoSolicitacao") %></td>
                    <td><asp:Button runat="server" ID="cmdEdit" CommandName="cmdEdit" CommandArgument= <%# Eval("idTipoSolicitacao") %> Text="Editar"/></td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                    </tbody>
                </table>
            </FooterTemplate>
            </asp:Repeater>
            <br />
            <br />
    </div>
    </div>
</asp:Content>
